package com.leilei.sensitive;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author lei
 * @create 2024-05-20 16:03
 * @desc 托敏配置开启关闭属性
 **/
@ConfigurationProperties(prefix = SensitiveProperties.PREFIX)
@Getter
@Setter
public class SensitiveProperties {

    /**
     * 最少脱敏符号个数,与逆脱敏对应，当然仍有一定误判风险
     */
    public static final Integer MIN_MSK_LENGTH = 3;
    public static final String PREFIX = "sensitive";

    private Boolean enable = true;
    private String maskStr = "*";
    private Boolean reverseMp = false;
    private Boolean printSensitiveLog = false;
    private Boolean printReverseLog = false;
}
